package com.sikaryofficial.backend.domain.dto.req.information;

import com.sikaryofficial.system.api.model.att.AttachmentResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 文章评价回复对象
 *
 * @author qinjinyuan
 * @date 2024-03-15
 */
@Getter
@Setter
@ToString
@ApiModel(value = "文章评价回复请求入参", description = "文章评价回复请求入参")
public class ArticleEvaluateReplyReq {
    /**
     * 文章评价ID
     */
    @ApiModelProperty(value = "文章评价ID")
    @NotNull(message = "evaluateId is null")
    private Long articleEvaluateId;
    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    @NotBlank(message = "replyContent is null")
    private String replyContent;

    /** 回复类型:0-针对评论进行回复,1-针对回复进行回复;默认 0 */
    @ApiModelProperty(value = "回复类型:0-针对评论进行回复,1-针对回复进行回复;默认 0",  example = "0")
    @Min(value = 0, message = "replyType min value is 0")
    @Max(value = 1, message = "replyType max value is 1")
    private Integer replyType;
    /** 被回复人ID */
    @ApiModelProperty(value = "被回复人ID",  example = "0")
    @NotNull(message = "replyUserId is null")
    private Long replyUserId;
    /** 被回复人名称 */
    @ApiModelProperty(value = "被回复人名称",  example = "xxx")
    @NotBlank(message = "replyUserName is null")
    private String replyUserName;
    /**
     * 附件列表
     */
    @ApiModelProperty(value = "附件列表")
    private List<AttachmentResp> attachmentList;
}
